<?php
/**
 * Created by PhpStorm.
 * User: kai.yang
 * Date: 2019-01-05
 * Time: 05:48
 */


namespace Exception;

class BaseException
{
    private $coede=200;


    const _ERROR_PASS_CODE="000001";

    const _NO_USER_CODE="000002";


    private $msg ="操作成功";

    /**
     * @return int
     */
    public function getCoede()
    {
        return $this->coede;
    }

    /**
     * @param int $coede
     */
    public function setCode($coede)
    {
        $this->coede = $coede;
    }

    /**
     * @return string
     */
    public function getMsg()
    {
        return $this->msg;
    }

    /**
     * @param string $msg
     */
    public function setMsg($msg)
    {
        $this->msg = $msg;
    }

    public function __toString()
    {

        return "Exception:code=".$this->coede.";"."msg=".$this->msg;
    }


}